<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<div class="easyui-layout" style="width:100%;height:100%;" fit="true">
    <div data-options="region:'center',split:true" style="width: 100%;height: 100%">
		<table id="tableGrid1"></table>
	</div>
</div>
<script>

var tbl;
$(function(){
	initList();
});

function initList(){
	tbl = $('#tableGrid1').pDataGrid({
		 columns:[[
				  {field:'replyContent',title:'回复内容',width:'420',sortable:true},
				  {field:'replyUser',title:'回复人员',width:'80',align:'center',sortable:true},
				  {field:'replyDate',title:'回复时间',width:'140',align:'center',sortable:true, formatter:function(value,row,index){  
                      var unixTimestamp = new Date(value);  
                      return unixTimestamp.toLocaleString();  
                      } }
				  ]
			  ],
		    url:'<c:url value="/complaint/searchPageEmBReply.s"/>',  
		    pagination:true,
		    pageSize:30,
		    fitColumns:false,
		    singleSelect:false,
		    queryParams:{
		    	"complaintId":<%=request.getParameter("complaintId")%>
		    },
		    completeCallback:function(data){
				if(data.code == "100"){
					alertError(data.errorMsg);
				} 
			}
	}); 
	
}
</script>
